from rest_framework.serializers import ModelSerializer
from .models import *


class SshopSer(ModelSerializer):
    class Meta:
        model = Sshop
        fields = '__all__'


class ScomSer(ModelSerializer):
    class Meta:
        model = Scom
        fields = '__all__'
class SuserSer(ModelSerializer):
    class Meta:
        model = Suser
        fields = '__all__'


class AuSer(ModelSerializer):
    class Meta:
        model = Author
        fields = '__all__'

class ABSer(ModelSerializer):
    class Meta:
        model = Abook
        fields = '__all__'

class SABSer(ModelSerializer):
    au = AuSer()
    class Meta:
        model = Abook
        fields = '__all__'


class MovieSer(ModelSerializer):
    class Meta:
        model = Movie
        fields = '__all__'

class ActorSer(ModelSerializer):
    class Meta:
        model = Actor
        fields = '__all__'